<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<title>Login</title>
</head>
<body>

	<%
		//session = request.getSession(false);
		if (session.getAttribute("username") != null) {
			response.sendRedirect("viewExpenses.jsp");
		}
	%>


	<%@ include file="/include/header.jsp"%>

	<div class="login_bg_div">
		<div class="login_div">
			<span class="head_font">Log In</span>
			<div class="line"></div>

			<html:errors />
			<jsp:include page="/customError.jsp" />
			
			<html:javascript formName="loginForm" />

			<html:form action="logon.do" method="post">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="height20"></td>
					</tr>
					<tr>
						<td><html:text property="username" styleClass="input_text"></html:text>
						</td>
					</tr>
					<tr>
						<td class="height20"></td>
					</tr>
					<tr>
						<td><html:password property="password"
								styleClass="input_text"></html:password>
						</td>
					</tr>
					<tr>
						<td class="height20"></td>
					</tr>
					<tr>
						<td><html:submit value="SUBMIT" styleClass="btn"></html:submit>
							&nbsp; &nbsp; <html:button property="" value="CANCEL"
								styleClass="btn"></html:button></td>
					</tr>
				</table>
			</html:form>
		</div>
	</div>

	<%@ include file="/include/footer.jsp"%>
</body>
</html>